package service

import (
	"exam-app/user-srv/global"
	"exam-app/user-srv/internal/model/dao"
)

func GetUserAccount(account string) (*dao.Users, error) {

	var user dao.Users
	err := global.DB.Where("account = ?", account).First(&user).Error
	if err != nil {
		return nil, err
	}
	return &user, nil
}
